package com.sunny.springboot2.core.lock;

import org.aspectj.lang.ProceedingJoinPoint;

/**
 * key生成器
 * @author sunny
 * @date 2018/11/29
 */
public interface CacheKeyGenerator {

    /**
     * 获取AOP参数,生成指定缓存Key
     *
     * @param joinPoint joinPoint
     * @author sunny
     * @date 2018/11/29
     * @return java.lang.String 缓存KEY
     */
    String getLockKey(ProceedingJoinPoint joinPoint);
}
